<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui" 
      xmlns:component="http://java.sun.com/jsf/composite/component">

    <ui:composition template="/resources/include/template.xhtml">

        <ui:define name="title">

            <h:outputText value="#{bundle.Bambole} - #{bundle.Status}"/>

        </ui:define>

        <ui:define name="body">

            <h:form>

                <ui:include src="/resources/include/menu.xhtml"/> 

                <p:panel header="#{statusController.selected.enabled ? '' : ' ~ '}
                         #{bundle.Status} - #{bundle.Create}
                         #{statusController.selected.enabled ? '' : ' ~ '}">           

                    <component:toolbar

                        refreshButtonDisabled="true"
                        saveButtonDisabled="true"

                        previousButtonDisabled="#{!statusController.hasPreviousRecord}"
                        nextButtonDisabled="#{!statusController.hasNextRecord}"             

                        returnButtonAction="#{statusController.prepareList}"
                        previousButtonAction="#{statusController.previousItem}"
                        nextButtonAction="#{statusController.nextItem}"             
                        createButtonAction="#{statusController.prepareCreate}"
                        editButtonAction="#{statusController.prepareEdit}"
                        searchButtonAction="#{statusController.prepareSearch}"
                        deleteButtonAction="#{statusController.destroy}"

                        additionalInfoButtonRendered="true"            

                        /> 

                    <component:status

                        idDisabled="true"
                        enabledDisabled="true"
                        nameDisabled="true"
                        descriptionDisabled="true"
                        sequenceDisabled="true"
                        openingDisabled="true"
                        closingDisabled="true"  

                        openingRendered="true"
                        closingRendered="true"            

                        />          

                </p:panel>

            </h:form>

        </ui:define>

    </ui:composition>

</html>
